home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- DESTROY(QUEL) 2/21/79 DESTROY(QUEL)
-
-
-
- NAME
- destroy - destroy existing relation(s)
-
- SYNOPSIS
- _d_e_s_t_r_o_y relname { , relname }
- _d_e_s_t_r_o_y [ _p_e_r_m_i_t | _i_n_t_e_g_r_i_t_y ] relname [ integer { , integer
- } | _a_l_l ]
- _d_e_s_t_r_o_y _d_e_l_i_m groupname
-
- DESCRIPTION
- _D_e_s_t_r_o_y removes relations from the data base, removes con-
- straints or permissions from a relation, and removes user-
- defined delimitors. Only the relation owner may destroy a
- relation or its permissions and integrity constraints. A
- relation may be emptied of tuples, but not destroyed, using
- the delete statement or the modify statement.
-
- If the relation being destroyed has secondary indices on it,
- the secondary indices are also destroyed. Destruction of
- just a secondary index does not affect the primary relation
- it indexes.
-
- To destroy individual permissions or constraints for a rela-
- tion, the _i_n_t_e_g_e_r arguments should be those printed by a
- _h_e_l_p _p_e_r_m_i_t (for _d_e_s_t_r_o_y _p_e_r_m_i_t) or a _h_e_l_p _i_n_t_e_g_r_i_t_y (for
- _d_e_s_t_r_o_y _i_n_t_e_g_r_i_t_y) on the same relation. To destroy all
- constraints or permissions, the _a_l_l keyword may be used in
- place of individual integers. To destroy constraints or
- permissions, either the _i_n_t_e_g_e_r arguments or the _a_l_l keyword
- must be present.
-
- To destroy a delimitor group, the groupname must be speci-
- fied. This destroys the delimitors permanently, as opposed
- to unusing the group.
-
- EXAMPLE
- /* Destroy the emp relation */
- destroy emp
- destroy emp, parts
-
- /* Destroy some permissions on parts, and all integrity
- * constraints on employee
- */
- destroy permit parts 0, 4, 5
- destroy integrity employee
-
- /* Destroy the "paper" delimitor group */
- destroy delim paper
-
- SEE ALSO
- create(quel), delete(quel), delim(quel), help(quel),
- index(quel), modify(quel)
-
-
-